package com.provider2.controller;

import com.provider2.dto.Dto1;
import com.provider2.param.Param1;
import org.springframework.web.bind.annotation.*;

@RestController
    @RequestMapping("/api")
    public class GetNumController {

        @RequestMapping(value = "/getNum", method = RequestMethod.POST)
        @ResponseBody
        public Dto1 getRandomInt(@RequestBody Param1 param) {
            System.out.println(param);
            Dto1 da=new Dto1();
            da.setName("123");
            return da;
        }
}
